/**
 *                  Created by luyon on 17/8/22.
 *
 *                         App页面顶层路由
 *
 *                           code : App
 */

"use strict";

//=============
// 引入程序依赖
//=============
import React, { Component } from 'react' ;
import { connect } from 'react-redux' ;
import { mapStateToProps,mapDispatchToProps } from './AppRedux' ;

//引入组建
import MobileHome from './MobileHome/MobileHome'


class AppContainer extends Component{

    constructor(props){
        super(props) ;
    }

    render(){

        let Children = this.props.children ? this.props.children : <MobileHome /> ;

        return(
            <div>
                {Children}
            </div>
        )
    }
}

const App = connect(mapStateToProps,mapDispatchToProps)(AppContainer) ;

export { App as default } ;